package com.g.ocache.index;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author zhangyf
 * @param <K>
 * @param <V>
 */
public interface IndexLoader<K, V> {
	
	/**
	 * 
	 */
	boolean isRunning();
	
	void start() throws Exception;
	
	void stop() throws Exception;
	
	/**
	 * 
	 */
	Map<K, V> load(List<Object> ids) throws Exception;
}
